﻿@{
    Html.AddScriptParts(Url.Content("~/Plugins/SevenSpikes.Nop.Plugins.AjaxCart/Scripts/AjaxCartForShoppingCartBox.js"));
    Html.AddScriptParts(Url.Content("~/Plugins/SevenSpikes.Core/Scripts/kendo.all.min.js"));
    Html.AddScriptParts(Url.Content("~/Plugins/SevenSpikes.Nop.Plugins.AjaxCart/Scripts/jquery.json-2.2.min.js"));

    Html.AddCssFileParts(Url.Content("~/Plugins/SevenSpikes.Core/Styles/kendo.common.min.css"));
    Html.AddCssFileParts(Url.Content("~/Plugins/SevenSpikes.Core/Styles/kendo.default.min.css"));

    Html.AddCssFileParts(Url.Content("~/Plugins/SevenSpikes.Nop.Plugins.AjaxCart/Themes/" + Model.NopAjaxCartSettingsModel.Theme + "/Content/styles.css"));
}

@model SevenSpikes.Nop.Plugins.AjaxCart.Models.AddProductVariantToCartAjaxButtonModel

<input type="button" value="@Model.ButtonValue" class="nopAjaxCartProductVariantAddToCartButton" data-productVariantId="@Model.ProductVariantId" />


@if (Model.ShouldAddSettings)
{
     @Html.Hidden("addProductVariantToCartUrl", Url.Action("AddProductVariantToCartAjax", "NopAjaxCartShoppingCart"))
    @Html.Hidden("miniShoppingCartUrl", Url.Action("MiniShoppingCart", "NopAjaxCartShoppingCart"))
    @Html.Hidden("shoppingCartBoxUrl", Url.Action("ShoppingCartBox", "ElectronicsThemeCommon"))
    @Html.Hidden("flyoutShoppingCartUrl", Url.Action("NopAjaxCartFlyoutShoppingCart", "NopAjaxCartShoppingCart"))
    @Html.Hidden("miniShoppingCartPanelSelector", Html.Encode(Model.NopAjaxCartSettingsModel.MiniShoppingCartPanelSelector))
    @Html.Hidden("shoppingCartBoxPanelSelector", Html.Encode(".block-mini-cart"))
    @Html.Hidden("flyoutShoppingCartPanelSelector", Html.Encode(Model.NopAjaxCartSettingsModel.FlyoutCartPanelSelector))
    @Html.Hidden("productDetailsPageProductPanelSelector", Html.Encode(Model.NopAjaxCartSettingsModel.ProductDetailsPageProductPanelSelector))
    @Html.Hidden("shoppingCartMenuLinkSelector", Html.Encode(Model.NopAjaxCartSettingsModel.ShoppingCartMenuLinkSelector))
}